//
//  YLGoodsModel.m
//  YLFinanceService
//
//  Created by she1323 on 2017/8/23.
//  Copyright © 2017年 she1323. All rights reserved.
//

#import "YLGoodsModel.h"

@implementation YLGoodsModel

+ (instancetype)goodsModelWithImageName:(NSString *)imageName name:(NSString *)name
{
    YLGoodsModel *model = [[self alloc] init];
    model.imageName = imageName;
    model.name = name;
    return model;
}

+ (instancetype)goodsModelWithImageName:(NSString *)imageName name:(NSString *)name clickBlock:(NSString *(^)(void))clickBlock
{
    YLGoodsModel *model = [self goodsModelWithImageName:imageName name:name];
    model.clickBlock = clickBlock;
    return model;
}
@end
